import server from './http.js' //导入axios

//首页轮播
const carousel = () => {
   let data = server.post('/resources/carousel')
   return data
}
//首页手机 
const MobileList = (categoryName) => {
   let data = server.post('/product/getPromoProduct', categoryName)
   return data
}
// 家电 配件
const HotProduct = (categoryName) => {
   let data = server.post('/product/getHotProduct', categoryName)
   return data
}

export { carousel, MobileList, HotProduct }
